package indigo.mybatis.entity.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.apache.ibatis.type.JdbcType;

@Documented
@Retention(RUNTIME)
@Target({ FIELD, METHOD })
public @interface ResultProperty {
	String columnName() default "";

	JdbcType jdbcType() default JdbcType.UNDEFINED;

	boolean insertable() default true;

	boolean updatable() default true;
}
